<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<head>
    <title>LuaApp项目接口文档</title>
    <link rel="stylesheet" href="../ldoc.css" type="text/css" />
</head>
<body>

<div id="container">

<div id="product">
	<div id="product_logo"></div>
	<div id="product_name"><big><b></b></big></div>
	<div id="product_description"></div>
</div> <!-- id="product" -->


<div id="main">


<!-- Menu -->

<div id="navigation">
<br/>
<h1>LuaApp</h1>

<ul>
  <li><a href="../index.html">Index</a></li>
</ul>

<h2>Contents</h2>
<ul>
<li><a href="#Methods">Methods</a></li>
</ul>


<h2>Classes</h2>
<ul class="nowrap">
  <li><a href="../classes/ActivityIndicatorView.html">ActivityIndicatorView</a></li>
  <li><a href="../classes/AlertView.html">AlertView</a></li>
  <li><a href="../classes/Application.html">Application</a></li>
  <li><a href="../classes/AudioEngine.html">AudioEngine</a></li>
  <li><strong>Button</strong></li>
  <li><a href="../classes/CaptureView.html">CaptureView</a></li>
  <li><a href="../classes/CheckBox.html">CheckBox</a></li>
  <li><a href="../classes/ClippingView.html">ClippingView</a></li>
  <li><a href="../classes/Control.html">Control</a></li>
  <li><a href="../classes/DatePickerView.html">DatePickerView</a></li>
  <li><a href="../classes/Device.html">Device</a></li>
  <li><a href="../classes/DownloadManager.html">DownloadManager</a></li>
  <li><a href="../classes/DrawView.html">DrawView</a></li>
  <li><a href="../classes/DrawerController.html">DrawerController</a></li>
  <li><a href="../classes/FileUtils.html">FileUtils</a></li>
  <li><a href="../classes/GifView.html">GifView</a></li>
  <li><a href="../classes/HttpClient.html">HttpClient</a></li>
  <li><a href="../classes/HttpRequest.html">HttpRequest</a></li>
  <li><a href="../classes/Image.html">Image</a></li>
  <li><a href="../classes/ImageView.html">ImageView</a></li>
  <li><a href="../classes/Label.html">Label</a></li>
  <li><a href="../classes/LinearView.html">LinearView</a></li>
  <li><a href="../classes/ListView.html">ListView</a></li>
  <li><a href="../classes/ListViewCell.html">ListViewCell</a></li>
  <li><a href="../classes/NavController.html">NavController</a></li>
  <li><a href="../classes/Progress.html">Progress</a></li>
  <li><a href="../classes/Slider.html">Slider</a></li>
  <li><a href="../classes/Stepper.html">Stepper</a></li>
  <li><a href="../classes/Switch.html">Switch</a></li>
  <li><a href="../classes/TabBarController.html">TabBarController</a></li>
  <li><a href="../classes/TextField.html">TextField</a></li>
  <li><a href="../classes/TextView.html">TextView</a></li>
  <li><a href="../classes/UILoader.html">UILoader</a></li>
  <li><a href="../classes/View.html">View</a></li>
  <li><a href="../classes/ViewController.html">ViewController</a></li>
  <li><a href="../classes/WebView.html">WebView</a></li>
  <li><a href="../classes/Window.html">Window</a></li>
</ul>
<h2>Modules</h2>
<ul class="nowrap">
  <li><a href="../modules/Animation.html">Animation</a></li>
  <li><a href="../modules/class.html">class</a></li>
  <li><a href="../modules/constants.html">constants</a></li>
  <li><a href="../modules/crossapp.html">crossapp</a></li>
  <li><a href="../modules/cjson.html">cjson</a></li>
  <li><a href="../modules/mobdebug.html">mobdebug</a></li>
</ul>
<h2>Topics</h2>
<ul class="">
  <li><a href="../topics/readme.md.html">readme</a></li>
  <li><a href="../topics/layout.md.html">layout</a></li>
</ul>

</div>

<div id="content">

<h1>Class <code>Button</code></h1>
<p>按钮控件,继承自Control</p>
<p>

</p>
    <h3>See also:</h3>
    <ul>
         <a href="../classes/Control.html#">Control</a>
    </ul>


<h2><a href="#Methods">Methods</a></h2>
<table class="function_list">
	<tr>
	<td class="name" nowrap><a href="#Button:new">Button:new (int)</a></td>
	<td class="summary">创建按钮控件</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTarget">Button:setTarget (callback, eventType)</a></td>
	<td class="summary">设置事件处理函数</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:removeTarget">Button:removeTarget (eventType)</a></td>
	<td class="summary">移除事件处理</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:removeAllTarget">Button:removeAllTarget ()</a></td>
	<td class="summary">移除所有事件处理</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setNormalImage">Button:setNormalImage (string)</a></td>
	<td class="summary">设置普通状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setHighlightedImage">Button:setHighlightedImage (string)</a></td>
	<td class="summary">设置高亮状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setSelectedImage">Button:setSelectedImage (string)</a></td>
	<td class="summary">设置选中状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setDisabledImage">Button:setDisabledImage (string)</a></td>
	<td class="summary">设置禁用状态图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkNormalImage9">Button:setBkNormalImage9 (string, inset)</a></td>
	<td class="summary">设置普通状态背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkHighlightedImage9">Button:setBkHighlightedImage9 (string, inset)</a></td>
	<td class="summary">设置高亮状态背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkSelectedImage9">Button:setBkSelectedImage9 (string, inset)</a></td>
	<td class="summary">设置选中状态背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkDisabledImage9">Button:setBkDisabledImage9 (string, inset)</a></td>
	<td class="summary">设置禁用状态背景图片</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkNormalColor">Button:setBkNormalColor (color)</a></td>
	<td class="summary">设置普通状态背景色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkHighlightedColor">Button:setBkHighlightedColor (color)</a></td>
	<td class="summary">设置高亮状态背景色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkSelectedColor">Button:setBkSelectedColor (color)</a></td>
	<td class="summary">设置选中状态背景色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkDisabledColor">Button:setBkDisabledColor (color)</a></td>
	<td class="summary">设置禁用状态背景色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkNormalImage">Button:setBkNormalImage (image)</a></td>
	<td class="summary">设置普通状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkHighlightedImage">Button:setBkHighlightedImage (image)</a></td>
	<td class="summary">设置高亮状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkSelectedImage">Button:setBkSelectedImage (image)</a></td>
	<td class="summary">设置选中状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setBkDisabledImage">Button:setBkDisabledImage (image)</a></td>
	<td class="summary">设置禁用状态背景图</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setNormalText">Button:setNormalText (text)</a></td>
	<td class="summary">设置普通状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:getNormalText">Button:getNormalText ()</a></td>
	<td class="summary">获取普通状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setHighlightedText">Button:setHighlightedText (text)</a></td>
	<td class="summary">设置高亮状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:getHighlightedText">Button:getHighlightedText ()</a></td>
	<td class="summary">获取高亮状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setSelectedText">Button:setSelectedText (text)</a></td>
	<td class="summary">设置选中状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:getSelectedText">Button:getSelectedText ()</a></td>
	<td class="summary">获取高亮状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setDisabledText">Button:setDisabledText (text)</a></td>
	<td class="summary">设置禁用状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:getDisabledText">Button:getDisabledText ()</a></td>
	<td class="summary">获取禁用状态文本</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setNormalImageColor">Button:setNormalImageColor (color)</a></td>
	<td class="summary">设置普通状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setHighlightedImageColor">Button:setHighlightedImageColor (color)</a></td>
	<td class="summary">设置高亮状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setSelectedImageColor">Button:setSelectedImageColor (color)</a></td>
	<td class="summary">设置选中状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setDisabledImageColor">Button:setDisabledImageColor (color)</a></td>
	<td class="summary">设置禁用状态图片颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setNormalTitleColor">Button:setNormalTitleColor (color)</a></td>
	<td class="summary">设置普通状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setHighlightedTitleColor">Button:setHighlightedTitleColor (color)</a></td>
	<td class="summary">设置高亮状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setSelectedTitleColor">Button:setSelectedTitleColor (color)</a></td>
	<td class="summary">设置选中状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setDisabledTitleColor">Button:setDisabledTitleColor (color)</a></td>
	<td class="summary">设置禁用状态标题颜色</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleFontName">Button:setTitleFontName (fontName)</a></td>
	<td class="summary">设置字体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setImageOffset">Button:setImageOffset (w)</a></td>
	<td class="summary">设置图片偏移</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setImageSize">Button:setImageSize (w)</a></td>
	<td class="summary">设置图片尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleOffset">Button:setTitleOffset (w)</a></td>
	<td class="summary">设置文本偏移</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleLabelSize">Button:setTitleLabelSize (w)</a></td>
	<td class="summary">设置文本标签尺寸</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleFontSize">Button:setTitleFontSize (sz)</a></td>
	<td class="summary">设置字体大小</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setAllowsSelected">Button:setAllowsSelected (allowSelect)</a></td>
	<td class="summary">设置允许选中</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleBold">Button:setTitleBold (bold)</a></td>
	<td class="summary">设置标题为粗体</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setTitleTextAlignment">Button:setTitleTextAlignment (TextAlignment)</a></td>
	<td class="summary">设置标题对齐方式</td>
	</tr>
	<tr>
	<td class="name" nowrap><a href="#Button:setControlState">Button:setControlState (ControlState)</a></td>
	<td class="summary">设置状态</td>
	</tr>
</table>

<br/>
<br/>


    <h2 class="section-header "><a name="Methods"></a>Methods</h2>

    <dl class="function">
    <dt>
    <a name = "Button:new"></a>
    <strong>Button:new (int)</strong>
    </dt>
    <dd>
    创建按钮控件


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">int</span>
         buttonType
        </li>
    </ul>

    <h3>Returns:</h3>
    <ol>

        Button
    </ol>




</dd>
    <dt>
    <a name = "Button:setTarget"></a>
    <strong>Button:setTarget (callback, eventType)</strong>
    </dt>
    <dd>
    设置事件处理函数


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">callback</span>



        </li>
        <li><span class="parameter">eventType</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:removeTarget"></a>
    <strong>Button:removeTarget (eventType)</strong>
    </dt>
    <dd>
    移除事件处理


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">eventType</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:removeAllTarget"></a>
    <strong>Button:removeAllTarget ()</strong>
    </dt>
    <dd>
    移除所有事件处理







</dd>
    <dt>
    <a name = "Button:setNormalImage"></a>
    <strong>Button:setNormalImage (string)</strong>
    </dt>
    <dd>
    设置普通状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setHighlightedImage"></a>
    <strong>Button:setHighlightedImage (string)</strong>
    </dt>
    <dd>
    设置高亮状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setSelectedImage"></a>
    <strong>Button:setSelectedImage (string)</strong>
    </dt>
    <dd>
    设置选中状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setDisabledImage"></a>
    <strong>Button:setDisabledImage (string)</strong>
    </dt>
    <dd>
    设置禁用状态图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkNormalImage9"></a>
    <strong>Button:setBkNormalImage9 (string, inset)</strong>
    </dt>
    <dd>
    设置普通状态背景图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
        <li><span class="parameter">inset</span>
         {3,3,3,3}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkHighlightedImage9"></a>
    <strong>Button:setBkHighlightedImage9 (string, inset)</strong>
    </dt>
    <dd>
    设置高亮状态背景图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
        <li><span class="parameter">inset</span>
         {3,3,3,3}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkSelectedImage9"></a>
    <strong>Button:setBkSelectedImage9 (string, inset)</strong>
    </dt>
    <dd>
    设置选中状态背景图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
        <li><span class="parameter">inset</span>
         {3,3,3,3}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkDisabledImage9"></a>
    <strong>Button:setBkDisabledImage9 (string, inset)</strong>
    </dt>
    <dd>
    设置禁用状态背景图片


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">string</span>
         image
        </li>
        <li><span class="parameter">inset</span>
         {3,3,3,3}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkNormalColor"></a>
    <strong>Button:setBkNormalColor (color)</strong>
    </dt>
    <dd>
    设置普通状态背景色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkHighlightedColor"></a>
    <strong>Button:setBkHighlightedColor (color)</strong>
    </dt>
    <dd>
    设置高亮状态背景色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkSelectedColor"></a>
    <strong>Button:setBkSelectedColor (color)</strong>
    </dt>
    <dd>
    设置选中状态背景色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkDisabledColor"></a>
    <strong>Button:setBkDisabledColor (color)</strong>
    </dt>
    <dd>
    设置禁用状态背景色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkNormalImage"></a>
    <strong>Button:setBkNormalImage (image)</strong>
    </dt>
    <dd>
    设置普通状态背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkHighlightedImage"></a>
    <strong>Button:setBkHighlightedImage (image)</strong>
    </dt>
    <dd>
    设置高亮状态背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkSelectedImage"></a>
    <strong>Button:setBkSelectedImage (image)</strong>
    </dt>
    <dd>
    设置选中状态背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setBkDisabledImage"></a>
    <strong>Button:setBkDisabledImage (image)</strong>
    </dt>
    <dd>
    设置禁用状态背景图


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">image</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setNormalText"></a>
    <strong>Button:setNormalText (text)</strong>
    </dt>
    <dd>
    设置普通状态文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:getNormalText"></a>
    <strong>Button:getNormalText ()</strong>
    </dt>
    <dd>
    获取普通状态文本



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        text
    </ol>




</dd>
    <dt>
    <a name = "Button:setHighlightedText"></a>
    <strong>Button:setHighlightedText (text)</strong>
    </dt>
    <dd>
    设置高亮状态文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:getHighlightedText"></a>
    <strong>Button:getHighlightedText ()</strong>
    </dt>
    <dd>
    获取高亮状态文本



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        text
    </ol>




</dd>
    <dt>
    <a name = "Button:setSelectedText"></a>
    <strong>Button:setSelectedText (text)</strong>
    </dt>
    <dd>
    设置选中状态文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:getSelectedText"></a>
    <strong>Button:getSelectedText ()</strong>
    </dt>
    <dd>
    获取高亮状态文本



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        text
    </ol>




</dd>
    <dt>
    <a name = "Button:setDisabledText"></a>
    <strong>Button:setDisabledText (text)</strong>
    </dt>
    <dd>
    设置禁用状态文本


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">text</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:getDisabledText"></a>
    <strong>Button:getDisabledText ()</strong>
    </dt>
    <dd>
    获取禁用状态文本



    <h3>Returns:</h3>
    <ol>

           <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>
        text
    </ol>




</dd>
    <dt>
    <a name = "Button:setNormalImageColor"></a>
    <strong>Button:setNormalImageColor (color)</strong>
    </dt>
    <dd>
    设置普通状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setHighlightedImageColor"></a>
    <strong>Button:setHighlightedImageColor (color)</strong>
    </dt>
    <dd>
    设置高亮状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setSelectedImageColor"></a>
    <strong>Button:setSelectedImageColor (color)</strong>
    </dt>
    <dd>
    设置选中状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setDisabledImageColor"></a>
    <strong>Button:setDisabledImageColor (color)</strong>
    </dt>
    <dd>
    设置禁用状态图片颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setNormalTitleColor"></a>
    <strong>Button:setNormalTitleColor (color)</strong>
    </dt>
    <dd>
    设置普通状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setHighlightedTitleColor"></a>
    <strong>Button:setHighlightedTitleColor (color)</strong>
    </dt>
    <dd>
    设置高亮状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setSelectedTitleColor"></a>
    <strong>Button:setSelectedTitleColor (color)</strong>
    </dt>
    <dd>
    设置选中状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setDisabledTitleColor"></a>
    <strong>Button:setDisabledTitleColor (color)</strong>
    </dt>
    <dd>
    设置禁用状态标题颜色


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">color</span>
            <span class="types"><span class="type">Color</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleFontName"></a>
    <strong>Button:setTitleFontName (fontName)</strong>
    </dt>
    <dd>
    设置字体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">fontName</span>
            <span class="types"><a class="type" href="https://www.lua.org/manual/5.1/manual.html#5.4">string</a></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setImageOffset"></a>
    <strong>Button:setImageOffset (w)</strong>
    </dt>
    <dd>
    设置图片偏移


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">w</span>
            <span class="types"><span class="type">Size</span></span>
        ,h}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setImageSize"></a>
    <strong>Button:setImageSize (w)</strong>
    </dt>
    <dd>
    设置图片尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">w</span>
            <span class="types"><span class="type">Size</span></span>
        ,h}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleOffset"></a>
    <strong>Button:setTitleOffset (w)</strong>
    </dt>
    <dd>
    设置文本偏移


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">w</span>
            <span class="types"><span class="type">Size</span></span>
        ,h}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleLabelSize"></a>
    <strong>Button:setTitleLabelSize (w)</strong>
    </dt>
    <dd>
    设置文本标签尺寸


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">w</span>
            <span class="types"><span class="type">Size</span></span>
        ,h}
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleFontSize"></a>
    <strong>Button:setTitleFontSize (sz)</strong>
    </dt>
    <dd>
    设置字体大小


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">sz</span>
            <span class="types"><span class="type">float</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setAllowsSelected"></a>
    <strong>Button:setAllowsSelected (allowSelect)</strong>
    </dt>
    <dd>
    设置允许选中


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">allowSelect</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleBold"></a>
    <strong>Button:setTitleBold (bold)</strong>
    </dt>
    <dd>
    设置标题为粗体


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">bold</span>
            <span class="types"><span class="type">bool</span></span>



        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setTitleTextAlignment"></a>
    <strong>Button:setTitleTextAlignment (TextAlignment)</strong>
    </dt>
    <dd>
    设置标题对齐方式


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">TextAlignment</span>
         [left=0,center=1,right=2]
        </li>
    </ul>





</dd>
    <dt>
    <a name = "Button:setControlState"></a>
    <strong>Button:setControlState (ControlState)</strong>
    </dt>
    <dd>
    设置状态


    <h3>Parameters:</h3>
    <ul>
        <li><span class="parameter">ControlState</span>
         [normal=0,highlighted=1,disabled=2,selected=3]
        </li>
    </ul>





</dd>
</dl>


</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-04-25 21:28:27 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
</html>
